local thbattle__wen_zuisu = fk.CreateSkill {

  name = "thbattle__wen_zuisu",

  tags = { Skill.Compulsory, },

}



thbattle__wen_zuisu:addEffect(fk.CardUsing, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__wen_zuisu.name) and player.phase ~= Player.NotActive and
        #player.room.logic:getEventsOfScope(GameEvent.UseCard, 2, function(e)
          local use = e.data
          return use.from == player
        end, Player.HistoryTurn) > 1 and player:getMark("@@thbattle__wen_zuisu-turn") == 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(1, thbattle__wen_zuisu.name)
    THB_Utility.addStatusMark(player, "@@thbattle__wen_zuisu-turn")
  end
})

thbattle__wen_zuisu:addEffect("targetmod", {
  bypass_distances = function(self, player, skill, card, to)
    return player:getMark("@@thbattle__wen_zuisu-turn") > 0
  end,
})

return thbattle__wen_zuisu